using System;using System.Data;

namespace MyWeb.Data{	public class Feature	{		#region[Declare variables]		private string  _Id;		private string  _ProductsId;		private string  _TabsId;		private string  _Detail;
        private string _Index;
        private string _Date;		private string  _Active;		private string  _Lang;		#endregion		#region[Public Properties]		public string Id{ get { return _Id; } set { _Id = value; } }		public string ProductsId{ get { return _ProductsId; } set { _ProductsId = value; } }		public string TabsId{ get { return _TabsId; } set { _TabsId = value; } }		public string Detail{ get { return _Detail; } set { _Detail = value; } }
        public string Index { get { return _Index; } set { _Index = value; } }
        public string Date { get { return _Date; } set { _Date = value; } }		public string Active{ get { return _Active; } set { _Active = value; } }		public string Lang{ get { return _Lang; } set { _Lang = value; } }		#endregion		#region[Feature IDataReader]		public Feature FeatureIDataReader(IDataReader dr)		{			Data.Feature obj = new Data.Feature();
            obj.Id = (dr["Id"] is DBNull) ? string.Empty : dr["Id"].ToString();			obj.ProductsId = (dr["ProductsId"] is DBNull) ? string.Empty : dr["ProductsId"].ToString();			obj.TabsId = (dr["TabsId"] is DBNull) ? string.Empty : dr["TabsId"].ToString();			obj.Detail = (dr["Detail"] is DBNull) ? string.Empty : dr["Detail"].ToString();
            obj.Index = (dr["Index"] is DBNull) ? string.Empty : dr["Index"].ToString();
            obj.Date = (dr["Date"] is DBNull) ? string.Empty : dr["Date"].ToString();			obj.Active = (dr["Active"] is DBNull) ? string.Empty : dr["Active"].ToString();			obj.Lang = (dr["Lang"] is DBNull) ? string.Empty : dr["Lang"].ToString();			return obj;		}		#endregion	}}